package com.testDemo.jdk8.atomic;

import org.junit.jupiter.api.Test;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @author: zour
 * @date: 2024/2/5
 * @description:
 */
public class AtomicLongTest {
    @Test
    public void test(){
        AtomicLong fileSize = new AtomicLong(0);
        fileSize.addAndGet(100);
        System.out.println(fileSize.get());
    }
}
